package com.kgc.scd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kgc.scd.bean.User;
import com.kgc.scd.bean.UserVO;
import com.kgc.scd.mapper.UserMapper;
import com.kgc.scd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: WangKuoKuo
 * @create: 2022-06-09 20:01
 * @description:
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private  UserMapper userMapper;

    @Override
    public UserVO queryUserInfo(String userId) {
        return userMapper.selectAllByUserIdAndUserAddrIdUserVo(userId);
    }
}
